Facebook Coding Interview Question - Lowest Common Ancestor